-
-
Notifications
You must be signed in to change notification settings - Fork 411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimize shift
for dense arrays
#3405
Conversation
Test262 conformance changes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thanks!
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3405 +/- ##
==========================================
- Coverage 45.67% 45.65% -0.02%
==========================================
Files 483 483
Lines 49490 49498 +8
==========================================
- Hits 22604 22600 -4
- Misses 26886 26898 +12
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice
* Optimize `Array.prototype.shift` for dense arrays * Optimize shifts for dense arrays
fixes #3402.
This optimizes it for the common case. It would be cool to see if we can somehow change the definition of
IndexedProperties
to also allow these optimizations when arrays have empty slots.